-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Card branch #194
Card branch #194
Conversation
const parts = path.split('.') | ||
parts.pop() | ||
path = parts.join('.') | ||
res.redirect(path) |
Check warning
Code scanning / CodeQL
Server-side URL redirect Medium
user-provided value
app.get('/downloads/:filename', (req, res) => { | ||
const filename = req.params.filename; | ||
const filePath = path.join(__dirname, '/app/assets/downloads/' + filename); | ||
const filename = req.params.filename | ||
const filePath = path.join(__dirname, '/app/assets/downloads/' + filename) | ||
// Set appropriate headers | ||
// res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'); | ||
res.setHeader('Content-Disposition', `attachment; filename=${filename}`); | ||
res.setHeader('Content-Disposition', `attachment; filename=${filename}`) | ||
// Send the file | ||
res.sendFile(filePath); | ||
}); | ||
res.sendFile(filePath) | ||
}) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a file system access
// Send the file | ||
res.sendFile(filePath); | ||
}); | ||
res.sendFile(filePath) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
Mergin in the card component changes to main, along with bug fixes, broken anchor links and other fixes.